/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pedagio.dominio;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 *
 * @author pedroo
 */
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "dispositivo")
public class Dispositivo extends FormaPagamento {

    @Column(name = "saldo")
    private Double saldo;
    
    @Column(name = "bloqueado")
    private boolean bloqueado;

    public boolean isBloqueado() {
        return bloqueado;
    }

    public void setBloqueado(boolean bloqueado) {
        this.bloqueado = bloqueado;
    }

    public Double getSaldo() {
        return saldo;
    }

    public void setSaldo(Double saldo) {
        this.saldo = saldo;
    }
    
    @Override
    public String toString() {
        return "com.pedagio.dominio.Dispositivo[ id=" + getId() + " ]";
    }
    
}
